package jdbc;




import java.util.List;

import jdbc.entity.Countries;

public class CountryDao extends BaseDao<Countries> {
	
	public List<Countries> findByName(String name){
		return findBySql("select * from countries where country_name like'"+name+"'");
	}
	public List<Countries> findByregion_id(Integer id){
		return findBySql("select * from countries where region_id ='"+ id+"'" );
	}
}
